package w83a.w83aOperacionesPaso.w83aResultados;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import w83a.w83aBeans.W83aResultadosBean;
import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83bTablaConveniosOP.java.
 *
 * @author Deusto Sistemas
 */
public class W83aBusqResCentroSindicatoOPAction extends Q70ActionPasoOP{

	
	/* (non-Javadoc)
	 * @see es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP#processOP(es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE, org.apache.struts.action.ActionErrors, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		W83aResultadosBean rb=new W83aResultadosBean();
		rb.setTerritorio((String)request.getParameter("territorio"));
		rb.setAnoRegDefDesde((String)request.getParameter("anoregdefdesde"));
		rb.setAnoRegDefHasta((String)request.getParameter("anoregdefhasta"));
		rb.setNumRegDefDesde((String)request.getParameter("numregdefdesde"));
		rb.setNumRegDefHasta((String)request.getParameter("numregdefhasta"));
		rb.setAnoActaDesde((String)request.getParameter("anoactadesde"));
		rb.setAnoActaHasta((String)request.getParameter("anoactahasta"));
		rb.setNumActaDesde((String)request.getParameter("numactadesde"));
		rb.setNumActaHasta((String)request.getParameter("numactahasta"));
		rb.setFechaEleccionDesde((String)request.getParameter("felecdesde"));
		rb.setFechaEleccionHasta((String)request.getParameter("felechasta"));	
		/*rb.setFechaHistorico((String)request.getParameter("fechaHistorico"));
		rb.setFeHist((String)request.getParameter("fHist"));*/
		
		rb.setModo("resCentroSindicato");
		
		rb.setMin("0");
		rb.setMax("0");
	
		contexto.set("w83aResultadosBean",rb);
		
		contexto.set("contarResultados","");
		contexto.set("w83aListadoResultadosBean",new ArrayList());
		
	}

	/* (non-Javadoc)
	 * @see es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP#processForward(es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE, org.apache.struts.action.ActionErrors, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
			
		return mapping.findForward("ok");
	}

}
